home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
glass
/
glass.lha
/
GLASS
/
libcvr
/
ckcalloc.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-11-09
|
342b
|
21 lines
#include "all.h"
#include "cvr.h"
/* Allocate the given amount of memory and check if
it has been done. If not, complain, and stop.
*/
char *ckcalloc( n, sz )
unsigned int n;
unsigned int sz;
{
register char *adr;
adr = calloc( n, sz );
if( adr == (char *)0 ){
perror( "calloc" );
exit( 1 );
}
return( adr );
}